package com.imooc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件中(upyun)的值
 * Created by 廖师兄
 * 2018-06-05 16:15
 *
 * @author 廖师兄
 */
@Component
@ConfigurationProperties("upyun")
@Data
public class UpYunConfig {

    /**
     * oss 的 bucket 名称
     */
    private String bucketName;

    /**
     * 账号
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * http://xxx.com/
     */
    private String imageHost;
}
